package com.ngc.mall.controller;

import com.ngc.mall.common.configure.response.ResponseResult;
import com.ngc.mall.service.IThemeService;
import com.ngc.mall.vo.ThemeVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *
 * 专题
 * @author: chenxiaolin
 * @date 2023/8/28 2:28
**/
@RestController
@RequestMapping("/theme")
public class ThemeController {
    @Resource
    private IThemeService iThemeService;

    @GetMapping("/id/{id}")
    public ResponseResult<ThemeVO> getDetailById(@PathVariable Long id){
        return ResponseResult.success(iThemeService.getDetailById(id));
    }
}
